import request from "@/utils/request";

// 查询图表列表
export function getChartList(data) {
  return request({
    url: "/chart/list",
    method: "post",
    data,
  });
}

// 获取图表信息
export function getChartInfo(params) {
  return request({
    url: "/chart/detail",
    method: "get",
    params,
  });
}

// 更新图表信息
export function getChartUpdate(data) {
  return request({
    url: "/chart/update",
    method: "post",
    data,
  });
}

// 插入图表信息
export function getChartInsert(data) {
  return request({
    url: "/chart/insert",
    method: "post",
    data,
  });
}


// 删除图表信息
export function getChartDelete(params) {
  return request({
    url: "/chart/delete",
    method: "get",
    params,
  });
}
